<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>newest</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : July 2000</div>
    <p>
      <b>newest</b> -  returns newest file of a set of files</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>k=newest(paths)  </tt>
      </dd>
      <dd>
        <tt>k=newest(path1,path2,...,pathn)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>k</b>
        </tt>: the index of the newest file</li>
      <li>
        <tt>
          <b>paths</b>
        </tt>: a character string vector (or list), paths(i) is the pathname of ith file</li>
      <li>
        <tt>
          <b>pathi</b>
        </tt>: a character string, the pathname of ith file</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Given a set of pathnames newest returns the index of the newest
    one. Non existant files are supposed to be the oldest.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

newest('SCI/macros/xdess/bode.sci','SCI/macros/xdess/bode.bin')
newest('SCI/macros/xdess/bode.'+['sci','bin'])
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="fileinfo.htm">
        <tt>
          <b>fileinfo</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
